import { useNavigate } from "react-router-dom";
const useSearchTitle = () => {
    const navigate = useNavigate();
    const gotosearch = () => {
        navigate('/search')
    }
    const searchTitle = <div className='broadcast' onClick={gotosearch}><span>儿童手表</span><span className='iconfont icon-huo'></span></div>
    return searchTitle
}
export default useSearchTitle